<div id="content">
	
	<div class="post">
		<h2 class="title"><a href="#">view all institutions</a></h2>
		<!--<p class="meta">
			<span class="date"></span>
			<span class="posted"></span>
		</p> -->
 		<div style="clear: both;">&nbsp;</div>
		<div class="entry">
			<p>
			<br/>
			<?php
				echo "<table class=\"results-table\">
							<thead>
								<tr>
									<th> Institution Name </th>
									<th> Creation Date </th>
									<th> Created By </th>
									<th> Actions </th>
								</tr>	
							</thead>
							<tbody>
							";
				if(count($instituions_list->result()) == 0){
					echo "No institutions found.";
				}
				else{
					foreach($instituions_list->result() as $r){
						echo "<tr><td><div id=\"woo\" name=>". $r->name. " </td><td> " . $r->created_date. 
								" </td><td> ". $r->created_by . "</td>
								<td>".
									"<input type=button onclick=\"javascript:process_edit(".$r->institution_id.",'INST')\" value=\"Edit\">".
									"<input type=button onclick=\"javascript:process_delete(".$r->institution_id.",'INST')\" value=\"Delete\">"
								."</td>
								</tr>";
					}	
				}
				echo "</tbody></table>";
			?>
			<br/>
			<input type="button" onclick="javascript:location.href='<?php echo site_url('site/add_institutions');?>'"
			value="Add New">
			</p>
		</div>
	</div>
	<div style="clear: both;">&nbsp;</div>
</div>
<!-- end #content -->